<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>全局 function 模式</title>
</head>
<body>

<script src="module1.js" type="text/javascript"></script>
<script src="module2.js" type="text/javascript"></script>
<script>
    // foo()
    //
    // data = "xyz"
    // foo()

    foo()
</script>
</body>
</html>